package com.crape.message.bo;

import java.util.List;

import com.crape.common.exceptions.BOException;
import com.crape.common.model.MsgUser;

public interface IMsgUserBO {

    MsgUser getMsgUserById(Long id) throws BOException;

    List<MsgUser> getPagedMsgInfos(Long receiveid, Long sendid, Integer startIndex, Integer pageSize) throws BOException;
    
    Long countMsgInfos(Long receiveid, Long sendid) throws BOException;

    List<MsgUser> getPagedReceivedMsgs(Long receiveid, Integer startIndex, Integer pageSize) throws BOException;
    
    Long countReceivedMsgs(Long receiveid) throws BOException;

    List<MsgUser> getPagedMsgsSended(Long sendid, Integer startIndex, Integer pageSize) throws BOException;
    
    Long countSendedMsgs(Long sendid) throws BOException;

    void sendMsg(MsgUser msgUser) throws BOException;

    void deleteMsgById(Long id) throws BOException;

}
